package conson.tech.manage.app.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import conson.tech.core.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * ClassName: Activity
 * Description: 优惠券绑定表
 * Author: ZYF
 * Date: 2020/07/20
 * Version: 1.0
 */
@Data
@TableName("activity_coupons")
public class ActivityCoupons {
    private static final long serialVersionUID = 4327659821954015806L;

    /**主键id*/
    private Long id;

    /**活动id*/
    private Long activityId;

    /**优惠券主体配置表  批次id*/
    private Long batchId;

    /**活动开始时间*/
    private LocalDate startTime;

    /**活动结束时间*/
    private LocalDate endTime;

    /**单用户发放张数*/
    private Integer limitNum;

    /**活动优惠券总数量*/
    private Integer totalNum;

    /**优惠券剩余数量*/
    private Integer surplusNum;

    /**创建人*/
    private Long createBy;

    /**创建时间*/
    private LocalDateTime createTime;

    /**修改时间*/
    private LocalDateTime updateTime;

    /**修改人*/
    private Long updateBy;

    /**申请人*/
    private Long applyId;
    /**
     * 版本号
     */
    @TableField("version")
    @Version
    private int version;

}
